package com.jindi.appuser.dao;

import com.jindi.appuser.domain.Order;
import com.jindi.appuser.domain.User;
import com.jindi.appuser.vo.OrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    Order queryByOutTradeNo(String out_trade_no);

    int deleteByPayStatus();

    List<Order> listOrder(@Param("uid") String uid);

    Integer getAllOrderCountNum(@Param("startTime")String startTime, @Param("endTime")String endTime);

    Double getAllOrderCount(@Param("startTime")String startTime,@Param("endTime")String endTime);

    List<OrderVo> listOrderName(@Param("uid") String uid);

}